﻿namespace MovieTicket.WebApi.Controllers
{
    using System.Collections.Generic;
    using System.Web.Http;

    using MovieTicket.WebApi.BBL;
    using MovieTicket.WebApi.BBL.BusinessObjects;

    /// <summary>
    /// Class TheaterController
    /// </summary>
    public class TheaterController : ApiController
    {
        #region Public Methods and Operators

        /// <summary>
        /// Gets the specified movie id.
        /// </summary>
        /// <param name="movieId">The movie id.</param>
        /// <returns>List{TheaterBO}.</returns>
        public List<TheaterBO> Get(int movieId)
        {
            return MovieTicketsBLL.GetTheaterListForMovie(movieId);
        }

        #endregion
    }
}